package com.xj.rpc;

/**
 * 调用具体服务
 *
 * Created by xiongjie on 2020/2/23.
 */
public class ServiceInvoker {
    public Object invoke(ServiceInstance serviceInstance,Request request){
        return ReflectionUtils.invoke(serviceInstance.getTarget(),serviceInstance.getMethod(),request.getParameters());
    }
}
